# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=smooth
pkgver=0.9.10
pkgrel=0
arch="all"
url="https://github.com/enzo1982/smooth"
pkgdesc="The smooth Class Library"
license="Artistic-2.0"
makedepends="
	curl-dev
	fribidi-dev
	gtk+3.0-dev
	libjpeg-turbo-dev
	libx11-dev
	libxml2-dev
	"
source="https://github.com/enzo1982/smooth/archive/v$pkgver/smooth-v$pkgver.tar.gz
	remove-usage-of-lseek64.patch
	"
subpackages="$pkgname-dev"
options="!check" # No tests

prepare() {
	default_prepare

	find . -type f -exec sed -i 's|/usr/local|/usr|g' {} \;
}

build() {
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="
29166c31ec3763f434ff39494f4d3c94b79a8f087f9001e03f37a44664f140b8a1be69e06d5fe6cb79e8e35711fd2fb01d6f306c1bf6f96a30a2586604b57707  smooth-v0.9.10.tar.gz
d08d32895e217b8176da695eedbd5a3add7c3de40d928354aa0e593c19cc273acc842e8233ca9f79e01844b6265af32af67109f6abbefe4c7f70dff5243bd1e6  remove-usage-of-lseek64.patch
"
